package com.lingnan.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class HrCreateJobPositionParam {
    
    @NotBlank(message = "职位名称不能为空")
    @Size(max = 100, message = "职位名称长度不能超过100个字符")
    private String title;
    
    @Size(max = 50, message = "职位类型长度不能超过50个字符")
    private String type;
    
    @Size(max = 50, message = "薪资范围长度不能超过50个字符")
    private String salaryRange;
    
    @Size(max = 100, message = "工作地点长度不能超过100个字符")
    private String location;
    
    private String description;
    
    @Size(max = 50, message = "学历要求长度不能超过50个字符")
    private String eduRequirement;
    
    @Size(max = 50, message = "经验要求长度不能超过50个字符")
    private String expRequirement;
    
    @Min(value = 0, message = "状态必须为0-2之间")
    @Max(value = 2, message = "状态必须为0-2之间")
    private Integer status = 0; // 默认为草稿状态
}